package com.baicai.componentdatadeliver;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

/**
 * Create By：bai_cai，on 2019/1/16
 * God bless my code!
 */
public class RegisterResultActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_result);

        TextView result = this.findViewById(R.id.register_result);
        Intent intent = getIntent();
        if (intent != null) {
            String username = intent.getStringExtra("username");
            String password = intent.getStringExtra("password");

            result.setText("恭喜【" + username + "】 注册成功！！！");
        }
    }
}
